﻿@using www.Controllers
@using www.SService
@{
    ViewBag.Title = "Danh sách menu";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
   
}

<fieldset>
    <legend>Danh sách Menu</legend>
    <div class="clear"></div>
   
    <table style="width: 100%; height: auto; border: 1px solid #008080;" cellpadding="1" cellspacing="1">
        <tr style="background: #0000cd;color: #fff; font-size: 14px; font-weight: bold; height: 30px;">
            <th>Tên menu</th>
            <th>Id cha</th>
            <th>Liên kết</th>
            <th>Kiểu liên kết</th>
            <th>Cấp</th>
            <th>Thứ tự</th>
            <th>Loại</th>
            <th>Trạng thái</th>
            <th>Thao tác</th>
        </tr>

        @foreach (var item in (List<RelaxMenuDataContract>)ViewData["Data"])
        {
            <tr style="height: 25px;">
                <td>@item.Name</td>
                <td>@item.Parent</td>
                <td>@item.Link</td>
                <td>@item.Target</td>
                <td>@item.Level</td>
                <td>@item.Ord</td>
                <td>@item.Type</td>
                <td>@Utility.Active(item.Active)</td>
                <td>@Html.ActionLink("Sửa", "EditMenu", new { id = @item.Id }) </td>
            </tr>
        }
    </table>
</fieldset>
